/* 组件 统一引用*/
import editReimbursement from "./common/dialogs/editReimbursement.vue"
import treeSearch from "./common/dialogs/treeSearch.vue"
import treeSearchJob from "./common/dialogs/treeSearchJob.vue"
import treeSearchSubject from "./common/dialogs/treeSearchSubject.vue"
import tableSearchBank from "./common/dialogs/tableSearchBank.vue"
import tableSearchSingleset from "./common/dialogs/tableSearchSingleset.vue"
import treeSearchForMore from "./common/dialogs/treeSearchForMore"
import addRowTable from "./common/pageItem/addRowTable"
import uploadFiles from "./common/pageItem/uploadFiles"
import tableList from "./common/pageItem/tableList"
import treeSelect from "./common/pageItem/treeSelect"
import editTaxonomy from "./baseData/editTaxonomy"
import editCustomerAttr from "./customer/editCustomerAttr"
import customerSearch from './customer/customerSearch'
import contractSearch from './customer/contractSearch'
import editRegion from './customer/editRegion.vue'
import transitUnitSearch from './customer/transitUnitSearch'
import accSetCard from './finance/accSetCard'
import billSearch from './finance/billSearch'
import currSearch from './finance/currSearch' // 币别搜索
import currencySearch from './finance/currencySearch' // 币别分页

// 需要输出的所有组件
const objs = {};

function installCpn(componentName, component, componentNameStr) {
    objs[componentNameStr] = component;
    component.install = (Vue) => {
        Vue.component(componentName, component)
    }
}


installCpn('edit-reimbursement', editReimbursement, 'editReimbursement');
installCpn('add-row-table', addRowTable, 'addRowTable')
installCpn('tree-search', treeSearch, 'treeSearch')
installCpn('tree-search-job', treeSearchJob, 'treeSearchJob')
installCpn('tree-search-subject', treeSearchSubject, 'treeSearchSubject')
installCpn('table-search-bank', tableSearchBank, 'tableSearchBank')
installCpn('table-search-singleset', tableSearchSingleset, 'tableSearchSingleset')
installCpn('upload-files', uploadFiles, 'uploadFiles')
installCpn('tree-search-for-more', treeSearchForMore, 'treeSearchForMore')
installCpn('table-List', tableList, 'tableList')
installCpn('tree-Select', treeSelect, 'treeSelect')
installCpn('edit-taxonomy', editTaxonomy, 'editTaxonomy')
installCpn('edit-customer-attr', editCustomerAttr, 'editCustomerAttr')
installCpn('customer-search', customerSearch, 'customerSearch')
installCpn('contract-search', contractSearch, 'contractSearch')
installCpn('edit-region', editRegion, 'editRegion')
installCpn('transit-unit-search', transitUnitSearch, 'transitUnitSearch')
installCpn('bill-search', billSearch, 'billSearch')
installCpn('acc-set-card', accSetCard, 'accSetCard')
installCpn('curr-Search', currSearch, 'currSearch')
installCpn('currency-Search', currencySearch, 'currencySearch')






export default objs;